package com.suxiaoxiao.springbootlearn.designpattern.commandpattern.commands.light;

/**
 * 电灯
 * @author 、
 */
public class Light {

    private String name;

    public Light() {
    }

    public Light(String name) {
        this.name = name;
    }

    public void on() {
        System.out.println(name + "Light is on");
    }

    public void off() {
        System.out.println(name + "Light is off");
    }

}
